CreatePSPipeline() public method

public CreatePSPipeline ( CreatePSPipelineParameters parameters ) : PSPipeline
parameters CreatePSPipelineParameters
return Microsoft.Azure.Commands.DataFactories.Models.PSPipeline
コード例 #1
0
        public override void ExecuteCmdlet()
        {
            if (ParameterSetName == ByFactoryObject)
            {
                if (DataFactory == null)
                {
                    throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid));
                }

                DataFactoryName   = DataFactory.DataFactoryName;
                ResourceGroupName = DataFactory.ResourceGroupName;
            }

            string rawJsonContent = DataFactoryClient.ReadJsonFileContent(this.TryResolvePath(File));

            Name = ResolveResourceName(rawJsonContent, Name, "Pipeline");

            CreatePSPipelineParameters parameters = new CreatePSPipelineParameters()
            {
                ResourceGroupName = ResourceGroupName,
                DataFactoryName   = DataFactoryName,
                Name           = Name,
                RawJsonContent = rawJsonContent,
                Force          = Force.IsPresent,
                ConfirmAction  = ConfirmAction
            };

            WriteObject(DataFactoryClient.CreatePSPipeline(parameters));
        }