public override void ExecuteCmdlet()
        {
            if (ParameterSetName == ByFactoryObject)
            {
                DataFactoryName   = InputObject.DataFactoryName;
                ResourceGroupName = InputObject.ResourceGroupName;
            }

            NewDataFactoryGatewayAuthKeyParameters param = new NewDataFactoryGatewayAuthKeyParameters()
            {
                KeyName = KeyName
            };

            if (ShouldProcess(this.DataFactoryName, "New Data Factory Gateway Auth Key"))
            {
                PSDataFactoryGatewayAuthKey gatewayKey = DataFactoryClient.RegenerateGatewayAuthKey(ResourceGroupName, DataFactoryName, GatewayName, param);
                WriteObject(gatewayKey);
            }
        }