PatchGateway() public method

public PatchGateway ( string resourceGroupName, string dataFactoryName, PSDataFactoryGateway gateway ) : PSDataFactoryGateway
resourceGroupName string
dataFactoryName string
gateway Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway
return Microsoft.Azure.Commands.DataFactories.Models.PSDataFactoryGateway
コード例 #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;
            }

            PSDataFactoryGateway gateway = new PSDataFactoryGateway
            {
                Description = Description,
                Name        = Name
            };

            PSDataFactoryGateway response = DataFactoryClient.PatchGateway(ResourceGroupName, DataFactoryName, gateway);

            WriteObject(response);
        }