From 0234b9435da6d550fb2f41b291773a436f9a0b4a Mon Sep 17 00:00:00 2001 From: PowerShell Team Date: Tue, 21 Jun 2016 15:04:42 -0700 Subject: [PATCH] Add source files for Microsoft.PowerShell.Utility.Activities --- .../AssemblyInfo.cs | 19 + .../Generated/AddMemberActivity.cs | 190 ++++++++++ .../Generated/AddTypeActivity.cs | 250 +++++++++++++ .../Generated/CompareObjectActivity.cs | 166 +++++++++ .../Generated/ConvertFromCsvActivity.cs | 106 ++++++ .../Generated/ConvertFromJsonActivity.cs | 70 ++++ .../Generated/ConvertFromStringActivity.cs | 142 ++++++++ .../ConvertFromStringDataActivity.cs | 70 ++++ .../Generated/ConvertToCsvActivity.cs | 106 ++++++ .../Generated/ConvertToHtmlActivity.cs | 178 ++++++++++ .../Generated/ConvertToJsonActivity.cs | 94 +++++ .../Generated/ConvertToXmlActivity.cs | 106 ++++++ .../Generated/ExportClixmlActivity.cs | 142 ++++++++ .../Generated/ExportCsvActivity.cs | 178 ++++++++++ .../Generated/ExportFormatDataActivity.cs | 130 +++++++ .../Generated/GetCultureActivity.cs | 58 +++ .../Generated/GetDateActivity.cs | 190 ++++++++++ .../Generated/GetEventActivity.cs | 82 +++++ .../Generated/GetEventSubscriberActivity.cs | 94 +++++ .../Generated/GetHostActivity.cs | 58 +++ .../Generated/GetMemberActivity.cs | 130 +++++++ .../Generated/GetRandomActivity.cs | 118 +++++++ .../Generated/GetTraceSourceActivity.cs | 70 ++++ .../Generated/GetTypeDataActivity.cs | 70 ++++ .../Generated/GetUICultureActivity.cs | 58 +++ .../Generated/GetUniqueActivity.cs | 94 +++++ .../Generated/GroupObjectActivity.cs | 142 ++++++++ .../Generated/ImportClixmlActivity.cs | 118 +++++++ .../Generated/ImportCsvActivity.cs | 130 +++++++ .../Generated/InvokeExpressionActivity.cs | 70 ++++ .../Generated/InvokeRestMethodActivity.cs | 334 ++++++++++++++++++ .../Generated/InvokeWebRequestActivity.cs | 334 ++++++++++++++++++ .../Generated/MeasureCommandActivity.cs | 82 +++++ .../Generated/MeasureObjectActivity.cs | 178 ++++++++++ .../Generated/NewEventActivity.cs | 106 ++++++ .../Generated/NewTimeSpanActivity.cs | 130 +++++++ .../Generated/OutFileActivity.cs | 166 +++++++++ .../Generated/OutPrinterActivity.cs | 82 +++++ .../Generated/OutStringActivity.cs | 94 +++++ .../Generated/RegisterEngineEventActivity.cs | 130 +++++++ .../Generated/RegisterObjectEventActivity.cs | 154 ++++++++ .../Generated/RemoveEventActivity.cs | 82 +++++ .../Generated/SelectObjectActivity.cs | 190 ++++++++++ .../Generated/SelectStringActivity.cs | 226 ++++++++++++ .../Generated/SelectXmlActivity.cs | 130 +++++++ .../Generated/SendMailMessageActivity.cs | 238 +++++++++++++ .../Generated/SetDateActivity.cs | 94 +++++ .../Generated/SetTraceSourceActivity.cs | 178 ++++++++++ .../Generated/SortObjectActivity.cs | 130 +++++++ .../Generated/StartSleepActivity.cs | 82 +++++ .../Generated/TeeObjectActivity.cs | 118 +++++++ .../Generated/UnblockFileActivity.cs | 82 +++++ .../Generated/UnregisterEventActivity.cs | 94 +++++ .../Generated/UpdateListActivity.cs | 118 +++++++ .../Generated/WaitEventActivity.cs | 82 +++++ .../Generated/WriteDebugActivity.cs | 70 ++++ .../Generated/WriteErrorActivity.cs | 190 ++++++++++ .../Generated/WriteInformationActivity.cs | 82 +++++ .../Generated/WriteOutputActivity.cs | 82 +++++ .../Generated/WriteProgressActivity.cs | 166 +++++++++ .../Generated/WriteVerboseActivity.cs | 70 ++++ .../Generated/WriteWarningActivity.cs | 70 ++++ .../ImportLocalizedDataActivity.cs | 105 ++++++ .../GeneratedActivitiesResources.resx | 124 +++++++ 64 files changed, 8022 insertions(+) create mode 100644 src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs create mode 100644 src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx diff --git a/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs b/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs new file mode 100644 index 000000000..4156ed72c --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs @@ -0,0 +1,19 @@ +using System.Reflection; +using System.Security.Permissions; +using System.Runtime.CompilerServices; +using System.Runtime.ConstrainedExecution; +using System.Diagnostics.CodeAnalysis; + + +[assembly: AssemblyVersion("3.0.0.0")] +[assembly: AssemblyFileVersionAttribute("3.0.0.0")] +[assembly: System.Resources.NeutralResourcesLanguage("en")] +[assembly: System.Runtime.InteropServices.ComVisible(false)] + +[assembly: AssemblyConfiguration("")] +[assembly: ReliabilityContractAttribute(Consistency.MayCorruptAppDomain, Cer.MayFail)] +[assembly: AssemblyTitle("Microsoft.PowerShell.Utility.Activities")] +[assembly: AssemblyDescription("Microsoft.PowerShell.Utility.Activities")] + +[module: SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant")] + diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs new file mode 100644 index 000000000..27b8f4cbb --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs @@ -0,0 +1,190 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Add-Member command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class AddMember : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public AddMember() + { + this.DisplayName = "Add-Member"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Add-Member"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the MemberType parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MemberType { get; set; } + + /// + /// Provides access to the Name parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Name { get; set; } + + /// + /// Provides access to the Value parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Value { get; set; } + + /// + /// Provides access to the SecondValue parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SecondValue { get; set; } + + /// + /// Provides access to the TypeName parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TypeName { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + /// + /// Provides access to the PassThru parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PassThru { get; set; } + + /// + /// Provides access to the NotePropertyName parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NotePropertyName { get; set; } + + /// + /// Provides access to the NotePropertyValue parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NotePropertyValue { get; set; } + + /// + /// Provides access to the NotePropertyMembers parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NotePropertyMembers { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(MemberType.Expression != null) + { + targetCommand.AddParameter("MemberType", MemberType.Get(context)); + } + + if(Name.Expression != null) + { + targetCommand.AddParameter("Name", Name.Get(context)); + } + + if(Value.Expression != null) + { + targetCommand.AddParameter("Value", Value.Get(context)); + } + + if(SecondValue.Expression != null) + { + targetCommand.AddParameter("SecondValue", SecondValue.Get(context)); + } + + if(TypeName.Expression != null) + { + targetCommand.AddParameter("TypeName", TypeName.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + if(PassThru.Expression != null) + { + targetCommand.AddParameter("PassThru", PassThru.Get(context)); + } + + if(NotePropertyName.Expression != null) + { + targetCommand.AddParameter("NotePropertyName", NotePropertyName.Get(context)); + } + + if(NotePropertyValue.Expression != null) + { + targetCommand.AddParameter("NotePropertyValue", NotePropertyValue.Get(context)); + } + + if(NotePropertyMembers.Expression != null) + { + targetCommand.AddParameter("NotePropertyMembers", NotePropertyMembers.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs new file mode 100644 index 000000000..44cc3a74d --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs @@ -0,0 +1,250 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Add-Type command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class AddType : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public AddType() + { + this.DisplayName = "Add-Type"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Add-Type"; } } + + // Arguments + + /// + /// Provides access to the CodeDomProvider parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CodeDomProvider { get; set; } + + /// + /// Provides access to the CompilerParameters parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CompilerParameters { get; set; } + + /// + /// Provides access to the TypeDefinition parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TypeDefinition { get; set; } + + /// + /// Provides access to the Name parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Name { get; set; } + + /// + /// Provides access to the MemberDefinition parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MemberDefinition { get; set; } + + /// + /// Provides access to the Namespace parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Namespace { get; set; } + + /// + /// Provides access to the UsingNamespace parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UsingNamespace { get; set; } + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the AssemblyName parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument AssemblyName { get; set; } + + /// + /// Provides access to the Language parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Language { get; set; } + + /// + /// Provides access to the ReferencedAssemblies parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ReferencedAssemblies { get; set; } + + /// + /// Provides access to the OutputAssembly parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument OutputAssembly { get; set; } + + /// + /// Provides access to the OutputType parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument OutputType { get; set; } + + /// + /// Provides access to the PassThru parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PassThru { get; set; } + + /// + /// Provides access to the IgnoreWarnings parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument IgnoreWarnings { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(CodeDomProvider.Expression != null) + { + targetCommand.AddParameter("CodeDomProvider", CodeDomProvider.Get(context)); + } + + if(CompilerParameters.Expression != null) + { + targetCommand.AddParameter("CompilerParameters", CompilerParameters.Get(context)); + } + + if(TypeDefinition.Expression != null) + { + targetCommand.AddParameter("TypeDefinition", TypeDefinition.Get(context)); + } + + if(Name.Expression != null) + { + targetCommand.AddParameter("Name", Name.Get(context)); + } + + if(MemberDefinition.Expression != null) + { + targetCommand.AddParameter("MemberDefinition", MemberDefinition.Get(context)); + } + + if(Namespace.Expression != null) + { + targetCommand.AddParameter("Namespace", Namespace.Get(context)); + } + + if(UsingNamespace.Expression != null) + { + targetCommand.AddParameter("UsingNamespace", UsingNamespace.Get(context)); + } + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(AssemblyName.Expression != null) + { + targetCommand.AddParameter("AssemblyName", AssemblyName.Get(context)); + } + + if(Language.Expression != null) + { + targetCommand.AddParameter("Language", Language.Get(context)); + } + + if(ReferencedAssemblies.Expression != null) + { + targetCommand.AddParameter("ReferencedAssemblies", ReferencedAssemblies.Get(context)); + } + + if(OutputAssembly.Expression != null) + { + targetCommand.AddParameter("OutputAssembly", OutputAssembly.Get(context)); + } + + if(OutputType.Expression != null) + { + targetCommand.AddParameter("OutputType", OutputType.Get(context)); + } + + if(PassThru.Expression != null) + { + targetCommand.AddParameter("PassThru", PassThru.Get(context)); + } + + if(IgnoreWarnings.Expression != null) + { + targetCommand.AddParameter("IgnoreWarnings", IgnoreWarnings.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs new file mode 100644 index 000000000..f59322093 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs @@ -0,0 +1,166 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Compare-Object command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class CompareObject : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public CompareObject() + { + this.DisplayName = "Compare-Object"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Compare-Object"; } } + + // Arguments + + /// + /// Provides access to the ReferenceObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ReferenceObject { get; set; } + + /// + /// Provides access to the DifferenceObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument DifferenceObject { get; set; } + + /// + /// Provides access to the SyncWindow parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SyncWindow { get; set; } + + /// + /// Provides access to the Property parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Property { get; set; } + + /// + /// Provides access to the ExcludeDifferent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ExcludeDifferent { get; set; } + + /// + /// Provides access to the IncludeEqual parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument IncludeEqual { get; set; } + + /// + /// Provides access to the PassThru parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PassThru { get; set; } + + /// + /// Provides access to the Culture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Culture { get; set; } + + /// + /// Provides access to the CaseSensitive parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CaseSensitive { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(ReferenceObject.Expression != null) + { + targetCommand.AddParameter("ReferenceObject", ReferenceObject.Get(context)); + } + + if(DifferenceObject.Expression != null) + { + targetCommand.AddParameter("DifferenceObject", DifferenceObject.Get(context)); + } + + if(SyncWindow.Expression != null) + { + targetCommand.AddParameter("SyncWindow", SyncWindow.Get(context)); + } + + if(Property.Expression != null) + { + targetCommand.AddParameter("Property", Property.Get(context)); + } + + if(ExcludeDifferent.Expression != null) + { + targetCommand.AddParameter("ExcludeDifferent", ExcludeDifferent.Get(context)); + } + + if(IncludeEqual.Expression != null) + { + targetCommand.AddParameter("IncludeEqual", IncludeEqual.Get(context)); + } + + if(PassThru.Expression != null) + { + targetCommand.AddParameter("PassThru", PassThru.Get(context)); + } + + if(Culture.Expression != null) + { + targetCommand.AddParameter("Culture", Culture.Get(context)); + } + + if(CaseSensitive.Expression != null) + { + targetCommand.AddParameter("CaseSensitive", CaseSensitive.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs new file mode 100644 index 000000000..b44b461e2 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs @@ -0,0 +1,106 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-Csv command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertFromCsv : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertFromCsv() + { + this.DisplayName = "ConvertFrom-Csv"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-Csv"; } } + + // Arguments + + /// + /// Provides access to the Delimiter parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Delimiter { get; set; } + + /// + /// Provides access to the UseCulture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseCulture { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Header parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Header { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Delimiter.Expression != null) + { + targetCommand.AddParameter("Delimiter", Delimiter.Get(context)); + } + + if(UseCulture.Expression != null) + { + targetCommand.AddParameter("UseCulture", UseCulture.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Header.Expression != null) + { + targetCommand.AddParameter("Header", Header.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs new file mode 100644 index 000000000..91accccd4 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-Json command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertFromJson : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertFromJson() + { + this.DisplayName = "ConvertFrom-Json"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-Json"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs new file mode 100644 index 000000000..e9d2bdc31 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs @@ -0,0 +1,142 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-String command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertFromString : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertFromString() + { + this.DisplayName = "ConvertFrom-String"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-String"; } } + + // Arguments + + /// + /// Provides access to the Delimiter parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Delimiter { get; set; } + + /// + /// Provides access to the PropertyNames parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PropertyNames { get; set; } + + /// + /// Provides access to the TemplateFile parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TemplateFile { get; set; } + + /// + /// Provides access to the TemplateContent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TemplateContent { get; set; } + + /// + /// Provides access to the IncludeExtent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument IncludeExtent { get; set; } + + /// + /// Provides access to the UpdateTemplate parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UpdateTemplate { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Delimiter.Expression != null) + { + targetCommand.AddParameter("Delimiter", Delimiter.Get(context)); + } + + if(PropertyNames.Expression != null) + { + targetCommand.AddParameter("PropertyNames", PropertyNames.Get(context)); + } + + if(TemplateFile.Expression != null) + { + targetCommand.AddParameter("TemplateFile", TemplateFile.Get(context)); + } + + if(TemplateContent.Expression != null) + { + targetCommand.AddParameter("TemplateContent", TemplateContent.Get(context)); + } + + if(IncludeExtent.Expression != null) + { + targetCommand.AddParameter("IncludeExtent", IncludeExtent.Get(context)); + } + + if(UpdateTemplate.Expression != null) + { + targetCommand.AddParameter("UpdateTemplate", UpdateTemplate.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs new file mode 100644 index 000000000..1669f51b9 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-StringData command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertFromStringData : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertFromStringData() + { + this.DisplayName = "ConvertFrom-StringData"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-StringData"; } } + + // Arguments + + /// + /// Provides access to the StringData parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument StringData { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(StringData.Expression != null) + { + targetCommand.AddParameter("StringData", StringData.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs new file mode 100644 index 000000000..e1151e293 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs @@ -0,0 +1,106 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Csv command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertToCsv : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertToCsv() + { + this.DisplayName = "ConvertTo-Csv"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Csv"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Delimiter parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Delimiter { get; set; } + + /// + /// Provides access to the UseCulture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseCulture { get; set; } + + /// + /// Provides access to the NoTypeInformation parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoTypeInformation { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Delimiter.Expression != null) + { + targetCommand.AddParameter("Delimiter", Delimiter.Get(context)); + } + + if(UseCulture.Expression != null) + { + targetCommand.AddParameter("UseCulture", UseCulture.Get(context)); + } + + if(NoTypeInformation.Expression != null) + { + targetCommand.AddParameter("NoTypeInformation", NoTypeInformation.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs new file mode 100644 index 000000000..776ce1778 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs @@ -0,0 +1,178 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Html command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertToHtml : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertToHtml() + { + this.DisplayName = "ConvertTo-Html"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Html"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Property parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Property { get; set; } + + /// + /// Provides access to the Body parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Body { get; set; } + + /// + /// Provides access to the Head parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Head { get; set; } + + /// + /// Provides access to the Title parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Title { get; set; } + + /// + /// Provides access to the As parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument As { get; set; } + + /// + /// Provides access to the CssUri parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CssUri { get; set; } + + /// + /// Provides access to the Fragment parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Fragment { get; set; } + + /// + /// Provides access to the PostContent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PostContent { get; set; } + + /// + /// Provides access to the PreContent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PreContent { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Property.Expression != null) + { + targetCommand.AddParameter("Property", Property.Get(context)); + } + + if(Body.Expression != null) + { + targetCommand.AddParameter("Body", Body.Get(context)); + } + + if(Head.Expression != null) + { + targetCommand.AddParameter("Head", Head.Get(context)); + } + + if(Title.Expression != null) + { + targetCommand.AddParameter("Title", Title.Get(context)); + } + + if(As.Expression != null) + { + targetCommand.AddParameter("As", As.Get(context)); + } + + if(CssUri.Expression != null) + { + targetCommand.AddParameter("CssUri", CssUri.Get(context)); + } + + if(Fragment.Expression != null) + { + targetCommand.AddParameter("Fragment", Fragment.Get(context)); + } + + if(PostContent.Expression != null) + { + targetCommand.AddParameter("PostContent", PostContent.Get(context)); + } + + if(PreContent.Expression != null) + { + targetCommand.AddParameter("PreContent", PreContent.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs new file mode 100644 index 000000000..850a3216f --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs @@ -0,0 +1,94 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Json command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertToJson : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertToJson() + { + this.DisplayName = "ConvertTo-Json"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Json"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Depth parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Depth { get; set; } + + /// + /// Provides access to the Compress parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Compress { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Depth.Expression != null) + { + targetCommand.AddParameter("Depth", Depth.Get(context)); + } + + if(Compress.Expression != null) + { + targetCommand.AddParameter("Compress", Compress.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs new file mode 100644 index 000000000..45c39286e --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs @@ -0,0 +1,106 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Xml command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ConvertToXml : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ConvertToXml() + { + this.DisplayName = "ConvertTo-Xml"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Xml"; } } + + // Arguments + + /// + /// Provides access to the Depth parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Depth { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the NoTypeInformation parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoTypeInformation { get; set; } + + /// + /// Provides access to the As parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument As { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Depth.Expression != null) + { + targetCommand.AddParameter("Depth", Depth.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(NoTypeInformation.Expression != null) + { + targetCommand.AddParameter("NoTypeInformation", NoTypeInformation.Get(context)); + } + + if(As.Expression != null) + { + targetCommand.AddParameter("As", As.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs new file mode 100644 index 000000000..56c6f572a --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs @@ -0,0 +1,142 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Export-Clixml command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ExportClixml : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ExportClixml() + { + this.DisplayName = "Export-Clixml"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-Clixml"; } } + + // Arguments + + /// + /// Provides access to the Depth parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Depth { get; set; } + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + /// + /// Provides access to the NoClobber parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoClobber { get; set; } + + /// + /// Provides access to the Encoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Encoding { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Depth.Expression != null) + { + targetCommand.AddParameter("Depth", Depth.Get(context)); + } + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + if(NoClobber.Expression != null) + { + targetCommand.AddParameter("NoClobber", NoClobber.Get(context)); + } + + if(Encoding.Expression != null) + { + targetCommand.AddParameter("Encoding", Encoding.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs new file mode 100644 index 000000000..062c0b5cf --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs @@ -0,0 +1,178 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Export-Csv command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ExportCsv : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ExportCsv() + { + this.DisplayName = "Export-Csv"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-Csv"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + /// + /// Provides access to the NoClobber parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoClobber { get; set; } + + /// + /// Provides access to the Encoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Encoding { get; set; } + + /// + /// Provides access to the Append parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Append { get; set; } + + /// + /// Provides access to the Delimiter parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Delimiter { get; set; } + + /// + /// Provides access to the UseCulture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseCulture { get; set; } + + /// + /// Provides access to the NoTypeInformation parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoTypeInformation { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + if(NoClobber.Expression != null) + { + targetCommand.AddParameter("NoClobber", NoClobber.Get(context)); + } + + if(Encoding.Expression != null) + { + targetCommand.AddParameter("Encoding", Encoding.Get(context)); + } + + if(Append.Expression != null) + { + targetCommand.AddParameter("Append", Append.Get(context)); + } + + if(Delimiter.Expression != null) + { + targetCommand.AddParameter("Delimiter", Delimiter.Get(context)); + } + + if(UseCulture.Expression != null) + { + targetCommand.AddParameter("UseCulture", UseCulture.Get(context)); + } + + if(NoTypeInformation.Expression != null) + { + targetCommand.AddParameter("NoTypeInformation", NoTypeInformation.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs new file mode 100644 index 000000000..db698e5a4 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs @@ -0,0 +1,130 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Export-FormatData command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ExportFormatData : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ExportFormatData() + { + this.DisplayName = "Export-FormatData"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-FormatData"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + /// + /// Provides access to the NoClobber parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoClobber { get; set; } + + /// + /// Provides access to the IncludeScriptBlock parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument IncludeScriptBlock { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + if(NoClobber.Expression != null) + { + targetCommand.AddParameter("NoClobber", NoClobber.Get(context)); + } + + if(IncludeScriptBlock.Expression != null) + { + targetCommand.AddParameter("IncludeScriptBlock", IncludeScriptBlock.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs new file mode 100644 index 000000000..ffe8ecd14 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs @@ -0,0 +1,58 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Culture command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetCulture : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetCulture() + { + this.DisplayName = "Get-Culture"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Culture"; } } + + // Arguments + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs new file mode 100644 index 000000000..21633ff7e --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs @@ -0,0 +1,190 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Date command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetDate : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetDate() + { + this.DisplayName = "Get-Date"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Date"; } } + + // Arguments + + /// + /// Provides access to the Date parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Date { get; set; } + + /// + /// Provides access to the Year parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Year { get; set; } + + /// + /// Provides access to the Month parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Month { get; set; } + + /// + /// Provides access to the Day parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Day { get; set; } + + /// + /// Provides access to the Hour parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Hour { get; set; } + + /// + /// Provides access to the Minute parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Minute { get; set; } + + /// + /// Provides access to the Second parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Second { get; set; } + + /// + /// Provides access to the Millisecond parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Millisecond { get; set; } + + /// + /// Provides access to the DisplayHint parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument DisplayHint { get; set; } + + /// + /// Provides access to the UFormat parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UFormat { get; set; } + + /// + /// Provides access to the Format parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Format { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Date.Expression != null) + { + targetCommand.AddParameter("Date", Date.Get(context)); + } + + if(Year.Expression != null) + { + targetCommand.AddParameter("Year", Year.Get(context)); + } + + if(Month.Expression != null) + { + targetCommand.AddParameter("Month", Month.Get(context)); + } + + if(Day.Expression != null) + { + targetCommand.AddParameter("Day", Day.Get(context)); + } + + if(Hour.Expression != null) + { + targetCommand.AddParameter("Hour", Hour.Get(context)); + } + + if(Minute.Expression != null) + { + targetCommand.AddParameter("Minute", Minute.Get(context)); + } + + if(Second.Expression != null) + { + targetCommand.AddParameter("Second", Second.Get(context)); + } + + if(Millisecond.Expression != null) + { + targetCommand.AddParameter("Millisecond", Millisecond.Get(context)); + } + + if(DisplayHint.Expression != null) + { + targetCommand.AddParameter("DisplayHint", DisplayHint.Get(context)); + } + + if(UFormat.Expression != null) + { + targetCommand.AddParameter("UFormat", UFormat.Get(context)); + } + + if(Format.Expression != null) + { + targetCommand.AddParameter("Format", Format.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs new file mode 100644 index 000000000..20357fd5a --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Event command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetEvent : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetEvent() + { + this.DisplayName = "Get-Event"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Event"; } } + + // Arguments + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the EventIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument EventIdentifier { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(EventIdentifier.Expression != null) + { + targetCommand.AddParameter("EventIdentifier", EventIdentifier.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs new file mode 100644 index 000000000..f83cfb8d3 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs @@ -0,0 +1,94 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-EventSubscriber command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetEventSubscriber : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetEventSubscriber() + { + this.DisplayName = "Get-EventSubscriber"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-EventSubscriber"; } } + + // Arguments + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the SubscriptionId parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SubscriptionId { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(SubscriptionId.Expression != null) + { + targetCommand.AddParameter("SubscriptionId", SubscriptionId.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs new file mode 100644 index 000000000..582c0b856 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs @@ -0,0 +1,58 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Host command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetHost : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetHost() + { + this.DisplayName = "Get-Host"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Host"; } } + + // Arguments + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs new file mode 100644 index 000000000..25dfab190 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs @@ -0,0 +1,130 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Member command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetMember : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetMember() + { + this.DisplayName = "Get-Member"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Member"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Name parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Name { get; set; } + + /// + /// Provides access to the MemberType parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MemberType { get; set; } + + /// + /// Provides access to the View parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument View { get; set; } + + /// + /// Provides access to the Static parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Static { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Name.Expression != null) + { + targetCommand.AddParameter("Name", Name.Get(context)); + } + + if(MemberType.Expression != null) + { + targetCommand.AddParameter("MemberType", MemberType.Get(context)); + } + + if(View.Expression != null) + { + targetCommand.AddParameter("View", View.Get(context)); + } + + if(Static.Expression != null) + { + targetCommand.AddParameter("Static", Static.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs new file mode 100644 index 000000000..d861c1ae4 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs @@ -0,0 +1,118 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Random command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetRandom : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetRandom() + { + this.DisplayName = "Get-Random"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Random"; } } + + // Arguments + + /// + /// Provides access to the SetSeed parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument> SetSeed { get; set; } + + /// + /// Provides access to the Maximum parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Maximum { get; set; } + + /// + /// Provides access to the Minimum parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Minimum { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Count parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Count { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SetSeed.Expression != null) + { + targetCommand.AddParameter("SetSeed", SetSeed.Get(context)); + } + + if(Maximum.Expression != null) + { + targetCommand.AddParameter("Maximum", Maximum.Get(context)); + } + + if(Minimum.Expression != null) + { + targetCommand.AddParameter("Minimum", Minimum.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Count.Expression != null) + { + targetCommand.AddParameter("Count", Count.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs new file mode 100644 index 000000000..879ae3e11 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-TraceSource command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetTraceSource : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetTraceSource() + { + this.DisplayName = "Get-TraceSource"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-TraceSource"; } } + + // Arguments + + /// + /// Provides access to the Name parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Name { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Name.Expression != null) + { + targetCommand.AddParameter("Name", Name.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs new file mode 100644 index 000000000..e1322f6b2 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-TypeData command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetTypeData : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetTypeData() + { + this.DisplayName = "Get-TypeData"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-TypeData"; } } + + // Arguments + + /// + /// Provides access to the TypeName parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TypeName { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(TypeName.Expression != null) + { + targetCommand.AddParameter("TypeName", TypeName.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs new file mode 100644 index 000000000..5ee4e61a8 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs @@ -0,0 +1,58 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-UICulture command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetUICulture : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetUICulture() + { + this.DisplayName = "Get-UICulture"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-UICulture"; } } + + // Arguments + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs new file mode 100644 index 000000000..5f889161c --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs @@ -0,0 +1,94 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Unique command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GetUnique : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GetUnique() + { + this.DisplayName = "Get-Unique"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Unique"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the AsString parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument AsString { get; set; } + + /// + /// Provides access to the OnType parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument OnType { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(AsString.Expression != null) + { + targetCommand.AddParameter("AsString", AsString.Get(context)); + } + + if(OnType.Expression != null) + { + targetCommand.AddParameter("OnType", OnType.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs new file mode 100644 index 000000000..28902c86e --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs @@ -0,0 +1,142 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Group-Object command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class GroupObject : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public GroupObject() + { + this.DisplayName = "Group-Object"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Group-Object"; } } + + // Arguments + + /// + /// Provides access to the NoElement parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoElement { get; set; } + + /// + /// Provides access to the AsHashTable parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument AsHashTable { get; set; } + + /// + /// Provides access to the AsString parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument AsString { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Property parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Property { get; set; } + + /// + /// Provides access to the Culture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Culture { get; set; } + + /// + /// Provides access to the CaseSensitive parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CaseSensitive { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(NoElement.Expression != null) + { + targetCommand.AddParameter("NoElement", NoElement.Get(context)); + } + + if(AsHashTable.Expression != null) + { + targetCommand.AddParameter("AsHashTable", AsHashTable.Get(context)); + } + + if(AsString.Expression != null) + { + targetCommand.AddParameter("AsString", AsString.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Property.Expression != null) + { + targetCommand.AddParameter("Property", Property.Get(context)); + } + + if(Culture.Expression != null) + { + targetCommand.AddParameter("Culture", Culture.Get(context)); + } + + if(CaseSensitive.Expression != null) + { + targetCommand.AddParameter("CaseSensitive", CaseSensitive.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs new file mode 100644 index 000000000..f22033f36 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs @@ -0,0 +1,118 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Import-Clixml command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ImportClixml : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ImportClixml() + { + this.DisplayName = "Import-Clixml"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-Clixml"; } } + + // Arguments + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the IncludeTotalCount parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument IncludeTotalCount { get; set; } + + /// + /// Provides access to the Skip parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Skip { get; set; } + + /// + /// Provides access to the First parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument First { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(IncludeTotalCount.Expression != null) + { + targetCommand.AddParameter("IncludeTotalCount", IncludeTotalCount.Get(context)); + } + + if(Skip.Expression != null) + { + targetCommand.AddParameter("Skip", Skip.Get(context)); + } + + if(First.Expression != null) + { + targetCommand.AddParameter("First", First.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs new file mode 100644 index 000000000..5ac2037f2 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs @@ -0,0 +1,130 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Import-Csv command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class ImportCsv : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ImportCsv() + { + this.DisplayName = "Import-Csv"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-Csv"; } } + + // Arguments + + /// + /// Provides access to the Delimiter parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Delimiter { get; set; } + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the UseCulture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseCulture { get; set; } + + /// + /// Provides access to the Header parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Header { get; set; } + + /// + /// Provides access to the Encoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Encoding { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Delimiter.Expression != null) + { + targetCommand.AddParameter("Delimiter", Delimiter.Get(context)); + } + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(UseCulture.Expression != null) + { + targetCommand.AddParameter("UseCulture", UseCulture.Get(context)); + } + + if(Header.Expression != null) + { + targetCommand.AddParameter("Header", Header.Get(context)); + } + + if(Encoding.Expression != null) + { + targetCommand.AddParameter("Encoding", Encoding.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs new file mode 100644 index 000000000..fc7c7e5fb --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Invoke-Expression command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class InvokeExpression : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public InvokeExpression() + { + this.DisplayName = "Invoke-Expression"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-Expression"; } } + + // Arguments + + /// + /// Provides access to the Command parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Command { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Command.Expression != null) + { + targetCommand.AddParameter("Command", Command.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs new file mode 100644 index 000000000..f0ccdfe87 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs @@ -0,0 +1,334 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Invoke-RestMethod command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class InvokeRestMethod : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public InvokeRestMethod() + { + this.DisplayName = "Invoke-RestMethod"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-RestMethod"; } } + + // Arguments + + /// + /// Provides access to the Method parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Method { get; set; } + + /// + /// Provides access to the UseBasicParsing parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseBasicParsing { get; set; } + + /// + /// Provides access to the Uri parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Uri { get; set; } + + /// + /// Provides access to the WebSession parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument WebSession { get; set; } + + /// + /// Provides access to the SessionVariable parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SessionVariable { get; set; } + + /// + /// Provides access to the Credential parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Credential { get; set; } + + /// + /// Provides access to the UseDefaultCredentials parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseDefaultCredentials { get; set; } + + /// + /// Provides access to the CertificateThumbprint parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CertificateThumbprint { get; set; } + + /// + /// Provides access to the Certificate parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Certificate { get; set; } + + /// + /// Provides access to the UserAgent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UserAgent { get; set; } + + /// + /// Provides access to the DisableKeepAlive parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument DisableKeepAlive { get; set; } + + /// + /// Provides access to the TimeoutSec parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TimeoutSec { get; set; } + + /// + /// Provides access to the Headers parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Headers { get; set; } + + /// + /// Provides access to the MaximumRedirection parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MaximumRedirection { get; set; } + + /// + /// Provides access to the Proxy parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Proxy { get; set; } + + /// + /// Provides access to the ProxyCredential parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ProxyCredential { get; set; } + + /// + /// Provides access to the ProxyUseDefaultCredentials parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ProxyUseDefaultCredentials { get; set; } + + /// + /// Provides access to the Body parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Body { get; set; } + + /// + /// Provides access to the ContentType parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ContentType { get; set; } + + /// + /// Provides access to the TransferEncoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TransferEncoding { get; set; } + + /// + /// Provides access to the InFile parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InFile { get; set; } + + /// + /// Provides access to the OutFile parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument OutFile { get; set; } + + /// + /// Provides access to the PassThru parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PassThru { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Method.Expression != null) + { + targetCommand.AddParameter("Method", Method.Get(context)); + } + + if(UseBasicParsing.Expression != null) + { + targetCommand.AddParameter("UseBasicParsing", UseBasicParsing.Get(context)); + } + + if(Uri.Expression != null) + { + targetCommand.AddParameter("Uri", Uri.Get(context)); + } + + if(WebSession.Expression != null) + { + targetCommand.AddParameter("WebSession", WebSession.Get(context)); + } + + if(SessionVariable.Expression != null) + { + targetCommand.AddParameter("SessionVariable", SessionVariable.Get(context)); + } + + if(Credential.Expression != null) + { + targetCommand.AddParameter("Credential", Credential.Get(context)); + } + + if(UseDefaultCredentials.Expression != null) + { + targetCommand.AddParameter("UseDefaultCredentials", UseDefaultCredentials.Get(context)); + } + + if(CertificateThumbprint.Expression != null) + { + targetCommand.AddParameter("CertificateThumbprint", CertificateThumbprint.Get(context)); + } + + if(Certificate.Expression != null) + { + targetCommand.AddParameter("Certificate", Certificate.Get(context)); + } + + if(UserAgent.Expression != null) + { + targetCommand.AddParameter("UserAgent", UserAgent.Get(context)); + } + + if(DisableKeepAlive.Expression != null) + { + targetCommand.AddParameter("DisableKeepAlive", DisableKeepAlive.Get(context)); + } + + if(TimeoutSec.Expression != null) + { + targetCommand.AddParameter("TimeoutSec", TimeoutSec.Get(context)); + } + + if(Headers.Expression != null) + { + targetCommand.AddParameter("Headers", Headers.Get(context)); + } + + if(MaximumRedirection.Expression != null) + { + targetCommand.AddParameter("MaximumRedirection", MaximumRedirection.Get(context)); + } + + if(Proxy.Expression != null) + { + targetCommand.AddParameter("Proxy", Proxy.Get(context)); + } + + if(ProxyCredential.Expression != null) + { + targetCommand.AddParameter("ProxyCredential", ProxyCredential.Get(context)); + } + + if(ProxyUseDefaultCredentials.Expression != null) + { + targetCommand.AddParameter("ProxyUseDefaultCredentials", ProxyUseDefaultCredentials.Get(context)); + } + + if(Body.Expression != null) + { + targetCommand.AddParameter("Body", Body.Get(context)); + } + + if(ContentType.Expression != null) + { + targetCommand.AddParameter("ContentType", ContentType.Get(context)); + } + + if(TransferEncoding.Expression != null) + { + targetCommand.AddParameter("TransferEncoding", TransferEncoding.Get(context)); + } + + if(InFile.Expression != null) + { + targetCommand.AddParameter("InFile", InFile.Get(context)); + } + + if(OutFile.Expression != null) + { + targetCommand.AddParameter("OutFile", OutFile.Get(context)); + } + + if(PassThru.Expression != null) + { + targetCommand.AddParameter("PassThru", PassThru.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs new file mode 100644 index 000000000..16b22f673 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs @@ -0,0 +1,334 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Invoke-WebRequest command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class InvokeWebRequest : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public InvokeWebRequest() + { + this.DisplayName = "Invoke-WebRequest"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-WebRequest"; } } + + // Arguments + + /// + /// Provides access to the UseBasicParsing parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseBasicParsing { get; set; } + + /// + /// Provides access to the Uri parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Uri { get; set; } + + /// + /// Provides access to the WebSession parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument WebSession { get; set; } + + /// + /// Provides access to the SessionVariable parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SessionVariable { get; set; } + + /// + /// Provides access to the Credential parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Credential { get; set; } + + /// + /// Provides access to the UseDefaultCredentials parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseDefaultCredentials { get; set; } + + /// + /// Provides access to the CertificateThumbprint parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CertificateThumbprint { get; set; } + + /// + /// Provides access to the Certificate parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Certificate { get; set; } + + /// + /// Provides access to the UserAgent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UserAgent { get; set; } + + /// + /// Provides access to the DisableKeepAlive parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument DisableKeepAlive { get; set; } + + /// + /// Provides access to the TimeoutSec parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TimeoutSec { get; set; } + + /// + /// Provides access to the Headers parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Headers { get; set; } + + /// + /// Provides access to the MaximumRedirection parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MaximumRedirection { get; set; } + + /// + /// Provides access to the Method parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Method { get; set; } + + /// + /// Provides access to the Proxy parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Proxy { get; set; } + + /// + /// Provides access to the ProxyCredential parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ProxyCredential { get; set; } + + /// + /// Provides access to the ProxyUseDefaultCredentials parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ProxyUseDefaultCredentials { get; set; } + + /// + /// Provides access to the Body parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Body { get; set; } + + /// + /// Provides access to the ContentType parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ContentType { get; set; } + + /// + /// Provides access to the TransferEncoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TransferEncoding { get; set; } + + /// + /// Provides access to the InFile parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InFile { get; set; } + + /// + /// Provides access to the OutFile parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument OutFile { get; set; } + + /// + /// Provides access to the PassThru parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PassThru { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(UseBasicParsing.Expression != null) + { + targetCommand.AddParameter("UseBasicParsing", UseBasicParsing.Get(context)); + } + + if(Uri.Expression != null) + { + targetCommand.AddParameter("Uri", Uri.Get(context)); + } + + if(WebSession.Expression != null) + { + targetCommand.AddParameter("WebSession", WebSession.Get(context)); + } + + if(SessionVariable.Expression != null) + { + targetCommand.AddParameter("SessionVariable", SessionVariable.Get(context)); + } + + if(Credential.Expression != null) + { + targetCommand.AddParameter("Credential", Credential.Get(context)); + } + + if(UseDefaultCredentials.Expression != null) + { + targetCommand.AddParameter("UseDefaultCredentials", UseDefaultCredentials.Get(context)); + } + + if(CertificateThumbprint.Expression != null) + { + targetCommand.AddParameter("CertificateThumbprint", CertificateThumbprint.Get(context)); + } + + if(Certificate.Expression != null) + { + targetCommand.AddParameter("Certificate", Certificate.Get(context)); + } + + if(UserAgent.Expression != null) + { + targetCommand.AddParameter("UserAgent", UserAgent.Get(context)); + } + + if(DisableKeepAlive.Expression != null) + { + targetCommand.AddParameter("DisableKeepAlive", DisableKeepAlive.Get(context)); + } + + if(TimeoutSec.Expression != null) + { + targetCommand.AddParameter("TimeoutSec", TimeoutSec.Get(context)); + } + + if(Headers.Expression != null) + { + targetCommand.AddParameter("Headers", Headers.Get(context)); + } + + if(MaximumRedirection.Expression != null) + { + targetCommand.AddParameter("MaximumRedirection", MaximumRedirection.Get(context)); + } + + if(Method.Expression != null) + { + targetCommand.AddParameter("Method", Method.Get(context)); + } + + if(Proxy.Expression != null) + { + targetCommand.AddParameter("Proxy", Proxy.Get(context)); + } + + if(ProxyCredential.Expression != null) + { + targetCommand.AddParameter("ProxyCredential", ProxyCredential.Get(context)); + } + + if(ProxyUseDefaultCredentials.Expression != null) + { + targetCommand.AddParameter("ProxyUseDefaultCredentials", ProxyUseDefaultCredentials.Get(context)); + } + + if(Body.Expression != null) + { + targetCommand.AddParameter("Body", Body.Get(context)); + } + + if(ContentType.Expression != null) + { + targetCommand.AddParameter("ContentType", ContentType.Get(context)); + } + + if(TransferEncoding.Expression != null) + { + targetCommand.AddParameter("TransferEncoding", TransferEncoding.Get(context)); + } + + if(InFile.Expression != null) + { + targetCommand.AddParameter("InFile", InFile.Get(context)); + } + + if(OutFile.Expression != null) + { + targetCommand.AddParameter("OutFile", OutFile.Get(context)); + } + + if(PassThru.Expression != null) + { + targetCommand.AddParameter("PassThru", PassThru.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs new file mode 100644 index 000000000..d4795ca44 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Measure-Command command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class MeasureCommand : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public MeasureCommand() + { + this.DisplayName = "Measure-Command"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Measure-Command"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Expression parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Expression { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Expression.Expression != null) + { + targetCommand.AddParameter("Expression", Expression.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs new file mode 100644 index 000000000..7d8da3dd4 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs @@ -0,0 +1,178 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Measure-Object command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class MeasureObject : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public MeasureObject() + { + this.DisplayName = "Measure-Object"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Measure-Object"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Property parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Property { get; set; } + + /// + /// Provides access to the Sum parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Sum { get; set; } + + /// + /// Provides access to the Average parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Average { get; set; } + + /// + /// Provides access to the Maximum parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Maximum { get; set; } + + /// + /// Provides access to the Minimum parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Minimum { get; set; } + + /// + /// Provides access to the Line parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Line { get; set; } + + /// + /// Provides access to the Word parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Word { get; set; } + + /// + /// Provides access to the Character parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Character { get; set; } + + /// + /// Provides access to the IgnoreWhiteSpace parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument IgnoreWhiteSpace { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Property.Expression != null) + { + targetCommand.AddParameter("Property", Property.Get(context)); + } + + if(Sum.Expression != null) + { + targetCommand.AddParameter("Sum", Sum.Get(context)); + } + + if(Average.Expression != null) + { + targetCommand.AddParameter("Average", Average.Get(context)); + } + + if(Maximum.Expression != null) + { + targetCommand.AddParameter("Maximum", Maximum.Get(context)); + } + + if(Minimum.Expression != null) + { + targetCommand.AddParameter("Minimum", Minimum.Get(context)); + } + + if(Line.Expression != null) + { + targetCommand.AddParameter("Line", Line.Get(context)); + } + + if(Word.Expression != null) + { + targetCommand.AddParameter("Word", Word.Get(context)); + } + + if(Character.Expression != null) + { + targetCommand.AddParameter("Character", Character.Get(context)); + } + + if(IgnoreWhiteSpace.Expression != null) + { + targetCommand.AddParameter("IgnoreWhiteSpace", IgnoreWhiteSpace.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs new file mode 100644 index 000000000..f70ad8ba5 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs @@ -0,0 +1,106 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\New-Event command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class NewEvent : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public NewEvent() + { + this.DisplayName = "New-Event"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\New-Event"; } } + + // Arguments + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the Sender parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Sender { get; set; } + + /// + /// Provides access to the EventArguments parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument EventArguments { get; set; } + + /// + /// Provides access to the MessageData parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MessageData { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(Sender.Expression != null) + { + targetCommand.AddParameter("Sender", Sender.Get(context)); + } + + if(EventArguments.Expression != null) + { + targetCommand.AddParameter("EventArguments", EventArguments.Get(context)); + } + + if(MessageData.Expression != null) + { + targetCommand.AddParameter("MessageData", MessageData.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs new file mode 100644 index 000000000..d6a87d8c9 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs @@ -0,0 +1,130 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\New-TimeSpan command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class NewTimeSpan : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public NewTimeSpan() + { + this.DisplayName = "New-TimeSpan"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\New-TimeSpan"; } } + + // Arguments + + /// + /// Provides access to the Start parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Start { get; set; } + + /// + /// Provides access to the End parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument End { get; set; } + + /// + /// Provides access to the Days parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Days { get; set; } + + /// + /// Provides access to the Hours parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Hours { get; set; } + + /// + /// Provides access to the Minutes parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Minutes { get; set; } + + /// + /// Provides access to the Seconds parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Seconds { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Start.Expression != null) + { + targetCommand.AddParameter("Start", Start.Get(context)); + } + + if(End.Expression != null) + { + targetCommand.AddParameter("End", End.Get(context)); + } + + if(Days.Expression != null) + { + targetCommand.AddParameter("Days", Days.Get(context)); + } + + if(Hours.Expression != null) + { + targetCommand.AddParameter("Hours", Hours.Get(context)); + } + + if(Minutes.Expression != null) + { + targetCommand.AddParameter("Minutes", Minutes.Get(context)); + } + + if(Seconds.Expression != null) + { + targetCommand.AddParameter("Seconds", Seconds.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs new file mode 100644 index 000000000..162849712 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs @@ -0,0 +1,166 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Out-File command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class OutFile : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public OutFile() + { + this.DisplayName = "Out-File"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-File"; } } + + // Arguments + + /// + /// Provides access to the FilePath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument FilePath { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the Encoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Encoding { get; set; } + + /// + /// Provides access to the Append parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Append { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + /// + /// Provides access to the NoClobber parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoClobber { get; set; } + + /// + /// Provides access to the Width parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Width { get; set; } + + /// + /// Provides access to the NoNewline parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoNewline { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(FilePath.Expression != null) + { + targetCommand.AddParameter("FilePath", FilePath.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(Encoding.Expression != null) + { + targetCommand.AddParameter("Encoding", Encoding.Get(context)); + } + + if(Append.Expression != null) + { + targetCommand.AddParameter("Append", Append.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + if(NoClobber.Expression != null) + { + targetCommand.AddParameter("NoClobber", NoClobber.Get(context)); + } + + if(Width.Expression != null) + { + targetCommand.AddParameter("Width", Width.Get(context)); + } + + if(NoNewline.Expression != null) + { + targetCommand.AddParameter("NoNewline", NoNewline.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs new file mode 100644 index 000000000..deed414fe --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Out-Printer command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class OutPrinter : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public OutPrinter() + { + this.DisplayName = "Out-Printer"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-Printer"; } } + + // Arguments + + /// + /// Provides access to the Name parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Name { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Name.Expression != null) + { + targetCommand.AddParameter("Name", Name.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs new file mode 100644 index 000000000..334053deb --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs @@ -0,0 +1,94 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Out-String command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class OutString : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public OutString() + { + this.DisplayName = "Out-String"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-String"; } } + + // Arguments + + /// + /// Provides access to the Stream parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Stream { get; set; } + + /// + /// Provides access to the Width parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Width { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Stream.Expression != null) + { + targetCommand.AddParameter("Stream", Stream.Get(context)); + } + + if(Width.Expression != null) + { + targetCommand.AddParameter("Width", Width.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs new file mode 100644 index 000000000..8f8cf6000 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs @@ -0,0 +1,130 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Register-EngineEvent command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class RegisterEngineEvent : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public RegisterEngineEvent() + { + this.DisplayName = "Register-EngineEvent"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Register-EngineEvent"; } } + + // Arguments + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the Action parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Action { get; set; } + + /// + /// Provides access to the MessageData parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MessageData { get; set; } + + /// + /// Provides access to the SupportEvent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SupportEvent { get; set; } + + /// + /// Provides access to the Forward parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Forward { get; set; } + + /// + /// Provides access to the MaxTriggerCount parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MaxTriggerCount { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(Action.Expression != null) + { + targetCommand.AddParameter("Action", Action.Get(context)); + } + + if(MessageData.Expression != null) + { + targetCommand.AddParameter("MessageData", MessageData.Get(context)); + } + + if(SupportEvent.Expression != null) + { + targetCommand.AddParameter("SupportEvent", SupportEvent.Get(context)); + } + + if(Forward.Expression != null) + { + targetCommand.AddParameter("Forward", Forward.Get(context)); + } + + if(MaxTriggerCount.Expression != null) + { + targetCommand.AddParameter("MaxTriggerCount", MaxTriggerCount.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs new file mode 100644 index 000000000..069b9e686 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs @@ -0,0 +1,154 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Register-ObjectEvent command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class RegisterObjectEvent : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public RegisterObjectEvent() + { + this.DisplayName = "Register-ObjectEvent"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Register-ObjectEvent"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the EventName parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument EventName { get; set; } + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the Action parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Action { get; set; } + + /// + /// Provides access to the MessageData parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MessageData { get; set; } + + /// + /// Provides access to the SupportEvent parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SupportEvent { get; set; } + + /// + /// Provides access to the Forward parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Forward { get; set; } + + /// + /// Provides access to the MaxTriggerCount parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MaxTriggerCount { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(EventName.Expression != null) + { + targetCommand.AddParameter("EventName", EventName.Get(context)); + } + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(Action.Expression != null) + { + targetCommand.AddParameter("Action", Action.Get(context)); + } + + if(MessageData.Expression != null) + { + targetCommand.AddParameter("MessageData", MessageData.Get(context)); + } + + if(SupportEvent.Expression != null) + { + targetCommand.AddParameter("SupportEvent", SupportEvent.Get(context)); + } + + if(Forward.Expression != null) + { + targetCommand.AddParameter("Forward", Forward.Get(context)); + } + + if(MaxTriggerCount.Expression != null) + { + targetCommand.AddParameter("MaxTriggerCount", MaxTriggerCount.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs new file mode 100644 index 000000000..c181084fc --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Remove-Event command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class RemoveEvent : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public RemoveEvent() + { + this.DisplayName = "Remove-Event"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Remove-Event"; } } + + // Arguments + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the EventIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument EventIdentifier { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(EventIdentifier.Expression != null) + { + targetCommand.AddParameter("EventIdentifier", EventIdentifier.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs new file mode 100644 index 000000000..86fedee7e --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs @@ -0,0 +1,190 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Select-Object command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class SelectObject : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public SelectObject() + { + this.DisplayName = "Select-Object"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-Object"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Property parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Property { get; set; } + + /// + /// Provides access to the ExcludeProperty parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ExcludeProperty { get; set; } + + /// + /// Provides access to the ExpandProperty parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ExpandProperty { get; set; } + + /// + /// Provides access to the Unique parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Unique { get; set; } + + /// + /// Provides access to the Last parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Last { get; set; } + + /// + /// Provides access to the First parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument First { get; set; } + + /// + /// Provides access to the Skip parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Skip { get; set; } + + /// + /// Provides access to the SkipLast parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SkipLast { get; set; } + + /// + /// Provides access to the Wait parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Wait { get; set; } + + /// + /// Provides access to the Index parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Index { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Property.Expression != null) + { + targetCommand.AddParameter("Property", Property.Get(context)); + } + + if(ExcludeProperty.Expression != null) + { + targetCommand.AddParameter("ExcludeProperty", ExcludeProperty.Get(context)); + } + + if(ExpandProperty.Expression != null) + { + targetCommand.AddParameter("ExpandProperty", ExpandProperty.Get(context)); + } + + if(Unique.Expression != null) + { + targetCommand.AddParameter("Unique", Unique.Get(context)); + } + + if(Last.Expression != null) + { + targetCommand.AddParameter("Last", Last.Get(context)); + } + + if(First.Expression != null) + { + targetCommand.AddParameter("First", First.Get(context)); + } + + if(Skip.Expression != null) + { + targetCommand.AddParameter("Skip", Skip.Get(context)); + } + + if(SkipLast.Expression != null) + { + targetCommand.AddParameter("SkipLast", SkipLast.Get(context)); + } + + if(Wait.Expression != null) + { + targetCommand.AddParameter("Wait", Wait.Get(context)); + } + + if(Index.Expression != null) + { + targetCommand.AddParameter("Index", Index.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs new file mode 100644 index 000000000..639d32806 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs @@ -0,0 +1,226 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Select-String command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class SelectString : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public SelectString() + { + this.DisplayName = "Select-String"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-String"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Pattern parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Pattern { get; set; } + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the SimpleMatch parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SimpleMatch { get; set; } + + /// + /// Provides access to the CaseSensitive parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CaseSensitive { get; set; } + + /// + /// Provides access to the Quiet parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Quiet { get; set; } + + /// + /// Provides access to the List parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument List { get; set; } + + /// + /// Provides access to the Include parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Include { get; set; } + + /// + /// Provides access to the Exclude parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Exclude { get; set; } + + /// + /// Provides access to the NotMatch parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NotMatch { get; set; } + + /// + /// Provides access to the AllMatches parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument AllMatches { get; set; } + + /// + /// Provides access to the Encoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Encoding { get; set; } + + /// + /// Provides access to the Context parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Context { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Pattern.Expression != null) + { + targetCommand.AddParameter("Pattern", Pattern.Get(context)); + } + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(SimpleMatch.Expression != null) + { + targetCommand.AddParameter("SimpleMatch", SimpleMatch.Get(context)); + } + + if(CaseSensitive.Expression != null) + { + targetCommand.AddParameter("CaseSensitive", CaseSensitive.Get(context)); + } + + if(Quiet.Expression != null) + { + targetCommand.AddParameter("Quiet", Quiet.Get(context)); + } + + if(List.Expression != null) + { + targetCommand.AddParameter("List", List.Get(context)); + } + + if(Include.Expression != null) + { + targetCommand.AddParameter("Include", Include.Get(context)); + } + + if(Exclude.Expression != null) + { + targetCommand.AddParameter("Exclude", Exclude.Get(context)); + } + + if(NotMatch.Expression != null) + { + targetCommand.AddParameter("NotMatch", NotMatch.Get(context)); + } + + if(AllMatches.Expression != null) + { + targetCommand.AddParameter("AllMatches", AllMatches.Get(context)); + } + + if(Encoding.Expression != null) + { + targetCommand.AddParameter("Encoding", Encoding.Get(context)); + } + + if(Context.Expression != null) + { + targetCommand.AddParameter("Context", Context.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs new file mode 100644 index 000000000..84ec6972f --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs @@ -0,0 +1,130 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Select-Xml command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class SelectXml : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public SelectXml() + { + this.DisplayName = "Select-Xml"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-Xml"; } } + + // Arguments + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the Xml parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Xml { get; set; } + + /// + /// Provides access to the Content parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Content { get; set; } + + /// + /// Provides access to the XPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument XPath { get; set; } + + /// + /// Provides access to the Namespace parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Namespace { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(Xml.Expression != null) + { + targetCommand.AddParameter("Xml", Xml.Get(context)); + } + + if(Content.Expression != null) + { + targetCommand.AddParameter("Content", Content.Get(context)); + } + + if(XPath.Expression != null) + { + targetCommand.AddParameter("XPath", XPath.Get(context)); + } + + if(Namespace.Expression != null) + { + targetCommand.AddParameter("Namespace", Namespace.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs new file mode 100644 index 000000000..e9593de7d --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs @@ -0,0 +1,238 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Send-MailMessage command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class SendMailMessage : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public SendMailMessage() + { + this.DisplayName = "Send-MailMessage"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Send-MailMessage"; } } + + // Arguments + + /// + /// Provides access to the Attachments parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Attachments { get; set; } + + /// + /// Provides access to the Bcc parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Bcc { get; set; } + + /// + /// Provides access to the Body parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Body { get; set; } + + /// + /// Provides access to the BodyAsHtml parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument BodyAsHtml { get; set; } + + /// + /// Provides access to the Encoding parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Encoding { get; set; } + + /// + /// Provides access to the Cc parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Cc { get; set; } + + /// + /// Provides access to the DeliveryNotificationOption parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument DeliveryNotificationOption { get; set; } + + /// + /// Provides access to the From parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument From { get; set; } + + /// + /// Provides access to the SmtpServer parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SmtpServer { get; set; } + + /// + /// Provides access to the Priority parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Priority { get; set; } + + /// + /// Provides access to the Subject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Subject { get; set; } + + /// + /// Provides access to the To parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument To { get; set; } + + /// + /// Provides access to the Credential parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Credential { get; set; } + + /// + /// Provides access to the UseSsl parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UseSsl { get; set; } + + /// + /// Provides access to the Port parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Port { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Attachments.Expression != null) + { + targetCommand.AddParameter("Attachments", Attachments.Get(context)); + } + + if(Bcc.Expression != null) + { + targetCommand.AddParameter("Bcc", Bcc.Get(context)); + } + + if(Body.Expression != null) + { + targetCommand.AddParameter("Body", Body.Get(context)); + } + + if(BodyAsHtml.Expression != null) + { + targetCommand.AddParameter("BodyAsHtml", BodyAsHtml.Get(context)); + } + + if(Encoding.Expression != null) + { + targetCommand.AddParameter("Encoding", Encoding.Get(context)); + } + + if(Cc.Expression != null) + { + targetCommand.AddParameter("Cc", Cc.Get(context)); + } + + if(DeliveryNotificationOption.Expression != null) + { + targetCommand.AddParameter("DeliveryNotificationOption", DeliveryNotificationOption.Get(context)); + } + + if(From.Expression != null) + { + targetCommand.AddParameter("From", From.Get(context)); + } + + if(SmtpServer.Expression != null) + { + targetCommand.AddParameter("SmtpServer", SmtpServer.Get(context)); + } + + if(Priority.Expression != null) + { + targetCommand.AddParameter("Priority", Priority.Get(context)); + } + + if(Subject.Expression != null) + { + targetCommand.AddParameter("Subject", Subject.Get(context)); + } + + if(To.Expression != null) + { + targetCommand.AddParameter("To", To.Get(context)); + } + + if(Credential.Expression != null) + { + targetCommand.AddParameter("Credential", Credential.Get(context)); + } + + if(UseSsl.Expression != null) + { + targetCommand.AddParameter("UseSsl", UseSsl.Get(context)); + } + + if(Port.Expression != null) + { + targetCommand.AddParameter("Port", Port.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs new file mode 100644 index 000000000..2ec03d77f --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs @@ -0,0 +1,94 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Set-Date command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class SetDate : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public SetDate() + { + this.DisplayName = "Set-Date"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Set-Date"; } } + + // Arguments + + /// + /// Provides access to the Date parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Date { get; set; } + + /// + /// Provides access to the Adjust parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Adjust { get; set; } + + /// + /// Provides access to the DisplayHint parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument DisplayHint { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Date.Expression != null) + { + targetCommand.AddParameter("Date", Date.Get(context)); + } + + if(Adjust.Expression != null) + { + targetCommand.AddParameter("Adjust", Adjust.Get(context)); + } + + if(DisplayHint.Expression != null) + { + targetCommand.AddParameter("DisplayHint", DisplayHint.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs new file mode 100644 index 000000000..0aa44cf3d --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs @@ -0,0 +1,178 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Set-TraceSource command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class SetTraceSource : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public SetTraceSource() + { + this.DisplayName = "Set-TraceSource"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Set-TraceSource"; } } + + // Arguments + + /// + /// Provides access to the Name parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Name { get; set; } + + /// + /// Provides access to the Option parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Option { get; set; } + + /// + /// Provides access to the ListenerOption parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ListenerOption { get; set; } + + /// + /// Provides access to the FilePath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument FilePath { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + /// + /// Provides access to the Debugger parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Debugger { get; set; } + + /// + /// Provides access to the PSHost parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PSHost { get; set; } + + /// + /// Provides access to the RemoveListener parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument RemoveListener { get; set; } + + /// + /// Provides access to the RemoveFileListener parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument RemoveFileListener { get; set; } + + /// + /// Provides access to the PassThru parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PassThru { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Name.Expression != null) + { + targetCommand.AddParameter("Name", Name.Get(context)); + } + + if(Option.Expression != null) + { + targetCommand.AddParameter("Option", Option.Get(context)); + } + + if(ListenerOption.Expression != null) + { + targetCommand.AddParameter("ListenerOption", ListenerOption.Get(context)); + } + + if(FilePath.Expression != null) + { + targetCommand.AddParameter("FilePath", FilePath.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + if(Debugger.Expression != null) + { + targetCommand.AddParameter("Debugger", Debugger.Get(context)); + } + + if(PSHost.Expression != null) + { + targetCommand.AddParameter("PSHost", PSHost.Get(context)); + } + + if(RemoveListener.Expression != null) + { + targetCommand.AddParameter("RemoveListener", RemoveListener.Get(context)); + } + + if(RemoveFileListener.Expression != null) + { + targetCommand.AddParameter("RemoveFileListener", RemoveFileListener.Get(context)); + } + + if(PassThru.Expression != null) + { + targetCommand.AddParameter("PassThru", PassThru.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs new file mode 100644 index 000000000..7fd7ee0c4 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs @@ -0,0 +1,130 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Sort-Object command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class SortObject : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public SortObject() + { + this.DisplayName = "Sort-Object"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Sort-Object"; } } + + // Arguments + + /// + /// Provides access to the Descending parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Descending { get; set; } + + /// + /// Provides access to the Unique parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Unique { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Property parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Property { get; set; } + + /// + /// Provides access to the Culture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Culture { get; set; } + + /// + /// Provides access to the CaseSensitive parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CaseSensitive { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Descending.Expression != null) + { + targetCommand.AddParameter("Descending", Descending.Get(context)); + } + + if(Unique.Expression != null) + { + targetCommand.AddParameter("Unique", Unique.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Property.Expression != null) + { + targetCommand.AddParameter("Property", Property.Get(context)); + } + + if(Culture.Expression != null) + { + targetCommand.AddParameter("Culture", Culture.Get(context)); + } + + if(CaseSensitive.Expression != null) + { + targetCommand.AddParameter("CaseSensitive", CaseSensitive.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs new file mode 100644 index 000000000..df095ed89 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Start-Sleep command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class StartSleep : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public StartSleep() + { + this.DisplayName = "Start-Sleep"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Start-Sleep"; } } + + // Arguments + + /// + /// Provides access to the Seconds parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Seconds { get; set; } + + /// + /// Provides access to the Milliseconds parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Milliseconds { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Seconds.Expression != null) + { + targetCommand.AddParameter("Seconds", Seconds.Get(context)); + } + + if(Milliseconds.Expression != null) + { + targetCommand.AddParameter("Milliseconds", Milliseconds.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs new file mode 100644 index 000000000..0d5ea713a --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs @@ -0,0 +1,118 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Tee-Object command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class TeeObject : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public TeeObject() + { + this.DisplayName = "Tee-Object"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Tee-Object"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the FilePath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument FilePath { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + /// + /// Provides access to the Append parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Append { get; set; } + + /// + /// Provides access to the Variable parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Variable { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(FilePath.Expression != null) + { + targetCommand.AddParameter("FilePath", FilePath.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + if(Append.Expression != null) + { + targetCommand.AddParameter("Append", Append.Get(context)); + } + + if(Variable.Expression != null) + { + targetCommand.AddParameter("Variable", Variable.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs new file mode 100644 index 000000000..d5a7ac4ba --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Unblock-File command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class UnblockFile : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public UnblockFile() + { + this.DisplayName = "Unblock-File"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Unblock-File"; } } + + // Arguments + + /// + /// Provides access to the Path parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Path { get; set; } + + /// + /// Provides access to the LiteralPath parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument LiteralPath { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Path.Expression != null) + { + targetCommand.AddParameter("Path", Path.Get(context)); + } + + if(LiteralPath.Expression != null) + { + targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs new file mode 100644 index 000000000..827dd3a49 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs @@ -0,0 +1,94 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Unregister-Event command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class UnregisterEvent : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public UnregisterEvent() + { + this.DisplayName = "Unregister-Event"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Unregister-Event"; } } + + // Arguments + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the SubscriptionId parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SubscriptionId { get; set; } + + /// + /// Provides access to the Force parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Force { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(SubscriptionId.Expression != null) + { + targetCommand.AddParameter("SubscriptionId", SubscriptionId.Get(context)); + } + + if(Force.Expression != null) + { + targetCommand.AddParameter("Force", Force.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs new file mode 100644 index 000000000..7265f0cac --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs @@ -0,0 +1,118 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Update-List command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class UpdateList : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public UpdateList() + { + this.DisplayName = "Update-List"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Update-List"; } } + + // Arguments + + /// + /// Provides access to the Add parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Add { get; set; } + + /// + /// Provides access to the Remove parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Remove { get; set; } + + /// + /// Provides access to the Replace parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Replace { get; set; } + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the Property parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Property { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Add.Expression != null) + { + targetCommand.AddParameter("Add", Add.Get(context)); + } + + if(Remove.Expression != null) + { + targetCommand.AddParameter("Remove", Remove.Get(context)); + } + + if(Replace.Expression != null) + { + targetCommand.AddParameter("Replace", Replace.Get(context)); + } + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(Property.Expression != null) + { + targetCommand.AddParameter("Property", Property.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs new file mode 100644 index 000000000..ae89a7c10 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Wait-Event command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WaitEvent : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WaitEvent() + { + this.DisplayName = "Wait-Event"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Wait-Event"; } } + + // Arguments + + /// + /// Provides access to the SourceIdentifier parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceIdentifier { get; set; } + + /// + /// Provides access to the Timeout parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Timeout { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(SourceIdentifier.Expression != null) + { + targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context)); + } + + if(Timeout.Expression != null) + { + targetCommand.AddParameter("Timeout", Timeout.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs new file mode 100644 index 000000000..7850f030f --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Debug command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WriteDebug : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WriteDebug() + { + this.DisplayName = "Write-Debug"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Debug"; } } + + // Arguments + + /// + /// Provides access to the Message parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Message { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Message.Expression != null) + { + targetCommand.AddParameter("Message", Message.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs new file mode 100644 index 000000000..ea3608bc0 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs @@ -0,0 +1,190 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Error command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WriteError : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WriteError() + { + this.DisplayName = "Write-Error"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Error"; } } + + // Arguments + + /// + /// Provides access to the Exception parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Exception { get; set; } + + /// + /// Provides access to the Message parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Message { get; set; } + + /// + /// Provides access to the ErrorRecord parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ErrorRecord { get; set; } + + /// + /// Provides access to the Category parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Category { get; set; } + + /// + /// Provides access to the ErrorId parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ErrorId { get; set; } + + /// + /// Provides access to the TargetObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument TargetObject { get; set; } + + /// + /// Provides access to the RecommendedAction parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument RecommendedAction { get; set; } + + /// + /// Provides access to the CategoryActivity parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CategoryActivity { get; set; } + + /// + /// Provides access to the CategoryReason parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CategoryReason { get; set; } + + /// + /// Provides access to the CategoryTargetName parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CategoryTargetName { get; set; } + + /// + /// Provides access to the CategoryTargetType parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CategoryTargetType { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Exception.Expression != null) + { + targetCommand.AddParameter("Exception", Exception.Get(context)); + } + + if(Message.Expression != null) + { + targetCommand.AddParameter("Message", Message.Get(context)); + } + + if(ErrorRecord.Expression != null) + { + targetCommand.AddParameter("ErrorRecord", ErrorRecord.Get(context)); + } + + if(Category.Expression != null) + { + targetCommand.AddParameter("Category", Category.Get(context)); + } + + if(ErrorId.Expression != null) + { + targetCommand.AddParameter("ErrorId", ErrorId.Get(context)); + } + + if(TargetObject.Expression != null) + { + targetCommand.AddParameter("TargetObject", TargetObject.Get(context)); + } + + if(RecommendedAction.Expression != null) + { + targetCommand.AddParameter("RecommendedAction", RecommendedAction.Get(context)); + } + + if(CategoryActivity.Expression != null) + { + targetCommand.AddParameter("CategoryActivity", CategoryActivity.Get(context)); + } + + if(CategoryReason.Expression != null) + { + targetCommand.AddParameter("CategoryReason", CategoryReason.Get(context)); + } + + if(CategoryTargetName.Expression != null) + { + targetCommand.AddParameter("CategoryTargetName", CategoryTargetName.Get(context)); + } + + if(CategoryTargetType.Expression != null) + { + targetCommand.AddParameter("CategoryTargetType", CategoryTargetType.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs new file mode 100644 index 000000000..3b00848e6 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Information command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WriteInformation : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WriteInformation() + { + this.DisplayName = "Write-Information"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Information"; } } + + // Arguments + + /// + /// Provides access to the MessageData parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument MessageData { get; set; } + + /// + /// Provides access to the Tags parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Tags { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(MessageData.Expression != null) + { + targetCommand.AddParameter("MessageData", MessageData.Get(context)); + } + + if(Tags.Expression != null) + { + targetCommand.AddParameter("Tags", Tags.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs new file mode 100644 index 000000000..855fc5a8a --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs @@ -0,0 +1,82 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Output command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WriteOutput : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WriteOutput() + { + this.DisplayName = "Write-Output"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Output"; } } + + // Arguments + + /// + /// Provides access to the InputObject parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument InputObject { get; set; } + + /// + /// Provides access to the NoEnumerate parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument NoEnumerate { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(InputObject.Expression != null) + { + targetCommand.AddParameter("InputObject", InputObject.Get(context)); + } + + if(NoEnumerate.Expression != null) + { + targetCommand.AddParameter("NoEnumerate", NoEnumerate.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs new file mode 100644 index 000000000..063dd6742 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs @@ -0,0 +1,166 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Progress command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WriteProgress : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WriteProgress() + { + this.DisplayName = "Write-Progress"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Progress"; } } + + // Arguments + + /// + /// Provides access to the Activity parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Activity { get; set; } + + /// + /// Provides access to the Status parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Status { get; set; } + + /// + /// Provides access to the ProgressId parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ProgressId { get; set; } + + /// + /// Provides access to the PercentComplete parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument PercentComplete { get; set; } + + /// + /// Provides access to the SecondsRemaining parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SecondsRemaining { get; set; } + + /// + /// Provides access to the CurrentOperation parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument CurrentOperation { get; set; } + + /// + /// Provides access to the ParentId parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument ParentId { get; set; } + + /// + /// Provides access to the Completed parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Completed { get; set; } + + /// + /// Provides access to the SourceId parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SourceId { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Activity.Expression != null) + { + targetCommand.AddParameter("Activity", Activity.Get(context)); + } + + if(Status.Expression != null) + { + targetCommand.AddParameter("Status", Status.Get(context)); + } + + if(ProgressId.Expression != null) + { + targetCommand.AddParameter("Id", ProgressId.Get(context)); + } + + if(PercentComplete.Expression != null) + { + targetCommand.AddParameter("PercentComplete", PercentComplete.Get(context)); + } + + if(SecondsRemaining.Expression != null) + { + targetCommand.AddParameter("SecondsRemaining", SecondsRemaining.Get(context)); + } + + if(CurrentOperation.Expression != null) + { + targetCommand.AddParameter("CurrentOperation", CurrentOperation.Get(context)); + } + + if(ParentId.Expression != null) + { + targetCommand.AddParameter("ParentId", ParentId.Get(context)); + } + + if(Completed.Expression != null) + { + targetCommand.AddParameter("Completed", Completed.Get(context)); + } + + if(SourceId.Expression != null) + { + targetCommand.AddParameter("SourceId", SourceId.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs new file mode 100644 index 000000000..58b75abb6 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Verbose command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WriteVerbose : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WriteVerbose() + { + this.DisplayName = "Write-Verbose"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Verbose"; } } + + // Arguments + + /// + /// Provides access to the Message parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Message { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Message.Expression != null) + { + targetCommand.AddParameter("Message", Message.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs new file mode 100644 index 000000000..eba6d4cdc --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs @@ -0,0 +1,70 @@ +// +// Copyright (C) Microsoft. All rights reserved. +// +using Microsoft.PowerShell.Activities; +using System.Management.Automation; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Warning command in a Workflow. + /// + [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] + public sealed class WriteWarning : PSActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public WriteWarning() + { + this.DisplayName = "Write-Warning"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Warning"; } } + + // Arguments + + /// + /// Provides access to the Message parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument Message { get; set; } + + + // Module defining this command + + + // Optional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(Message.Expression != null) + { + targetCommand.AddParameter("Message", Message.Get(context)); + } + + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs new file mode 100644 index 000000000..86873294d --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs @@ -0,0 +1,105 @@ +using System; +using Microsoft.PowerShell.Activities; +using System.Activities; +using System.Collections.Generic; +using System.ComponentModel; + + +namespace Microsoft.PowerShell.Utility.Activities +{ + /// + /// Activity to invoke the Microsoft.PowerShell.Utility\Import-LocalizedData command in a Workflow. + /// + public sealed class ImportLocalizedData : PSRemotingActivity + { + /// + /// Gets the display name of the command invoked by this activity. + /// + public ImportLocalizedData() + { + this.DisplayName = "Import-LocalizedData"; + } + + /// + /// Gets the fully qualified name of the command invoked by this activity. + /// + public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-LocalizedData"; } } + + // Arguments + + /// + /// Provides access to the UICulture parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument UICulture { get; set; } + + /// + /// Provides access to the BaseDirectory parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument BaseDirectory { get; set; } + + /// + /// Provides access to the FileName parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument FileName { get; set; } + + /// + /// Provides access to the SupportedCommand parameter. + /// + [ParameterSpecificCategory] + [DefaultValue(null)] + public InArgument SupportedCommand { get; set; } + + // Module defining this command + + + // Additional custom code for this activity + + + /// + /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run. + /// + /// The NativeActivityContext for the currently running activity. + /// A populated instance of Sytem.Management.Automation.PowerShell + /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned. + protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context) + { + System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create(); + System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName); + + // Initialize the arguments + + if(UICulture.Expression != null) + { + targetCommand.AddParameter("UICulture", UICulture.Get(context)); + } + + if(BaseDirectory.Expression != null) + { + targetCommand.AddParameter("BaseDirectory", BaseDirectory.Get(context)); + } + //If BaseDirectory is not specified, try to use the workflow base directory. + else + { + throw new ArgumentException(GeneratedActivitiesResources.ImportLocalizedDataWithEmptyEmptyorNullBaseDirectory); + } + + if(FileName.Expression != null) + { + targetCommand.AddParameter("FileName", FileName.Get(context)); + } + + if(SupportedCommand.Expression != null) + { + targetCommand.AddParameter("SupportedCommand", SupportedCommand.Get(context)); + } + + return new ActivityImplementationContext() { PowerShellInstance = invoker }; + } + } +} diff --git a/src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx b/src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx new file mode 100644 index 000000000..d540c60f7 --- /dev/null +++ b/src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Cannot have an empty BaseDirectory for importing localized data. Please specify a valid BaseDirectory and run the command again. + BaseDirectory should not be localized. This is a parameter. + + \ No newline at end of file